-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow comments in .python-version[s]
#5350
Conversation
Check out |
Thanks, I added a test. |
crates/uv/tests/python_pin.rs
Outdated
let child = context.temp_dir.child("foo"); | ||
child.create_dir_all()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason we need a child directory? The context.temp_dir
should be fine, right? Then you don't need to set the working directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm testing both .python-version
and .python-versions
in the same test, so I want to separate them by using different subdirectory, otherwise only one of them will be utilized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could just test the one that has higher precedence first. edit: second* :)
I'd recommend separate tests though over creating subdirectories for mixed state in a single test.
Summary
Do the same thing as astral-sh/rye#1038.